package com.sc.nft.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.UserEcologyReforgeUpperLimitDetails;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.vo.ecology.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 生态-重铸上限记录明细表(sc_user_ecology_reforge_upper_limit_details)数据Mapper
 *
 * @author Sun
 * @since 2024-06-07 09:04:10
 * @description 由 Mybatisplus Code Generator 创建
*/
@Mapper
public interface UserEcologyReforgeUpperLimitDetailsMapper extends BaseMapper<UserEcologyReforgeUpperLimitDetails> {

    /**
     * 用户重铸上限明细
     * @param page
     * @param userId
     * @return
     */
    Page<UserEcologyReforgeUpperLimitDetailsVO> getUserEcologyReforgeUpperLimitDetails(Page page, @Param("userId") Long userId, @Param("collectionId") Long collectionId);

    /**
     * 用户重铸上限明细
     * @param page
     * @param userId
     * @param collectionId
     * @param beginTime
     * @param endTime
     * @return
     */
    Page<AdminUserEcologyReforgeUpperLimitPageVO> getUserEcologyReforgeUpperLimitPage(Page page, @Param("userId") Long userId, @Param("collectionId") Long collectionId, @Param("beginTime") Date beginTime, @Param("endTime") Date endTime);

    Integer saveList(List<UserEcologyReforgeUpperLimitDetails> list);

}
